package com.xuecheng.base.config.xc;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author 勾新杰
 * @version 1.0
 * @description: Redis配置
 * @date 2025/2/22 15:00
 */
@Data
@Component
@ConfigurationProperties(prefix = "xuecheng.redis")
public class XCRedisProperties {

    /**
     * host
     */
    private String host;

    /**
     * 端口
     */
    private Integer port;

    /**
     * 密码
     */
    private String password;

    /**
     * 数据库
     */
    private Integer database;

    /**
     * 超时时间
     */
    private Integer timeout;
}
